package Test01;

public class Exercise14 {
    public static void main(String[] args) {
        int age1=23,age2=22,age3=21;
        int max=(age1>age2?age1:age2);
        int age4=(max>age3?max:age3);
        System.out.println("三人中最大年龄为："+age4);
    }
}
